<template>
  <div id="app">
    <router-view></router-view>
    <van-tabbar v-model="active" v-if="$store.state.showBottomNav" route>
      <van-tabbar-item icon="wap-home" to="/home">首页</van-tabbar-item>
      <van-tabbar-item icon="todo-list" to="/about">就医</van-tabbar-item>
      <van-tabbar-item icon="medal" to="/other">其他</van-tabbar-item>
      <van-tabbar-item icon="manager" to="/personal">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
export default {
  data() {
    return {
      active: 0,//
    };
  },
  methods: {
    onChange(index) {
      console.log(index)
    },
  },
};
</script>
<style lang="less">
</style>

